﻿using J.Status.Application.Command.BookingCommand;
using J.StatusModel;
using MediatR;
using StatusService;

namespace J.Status.Application.Handler.BookingHandler
{
    public class Booking3SelectHandler : IRequestHandler<Booking3SelectCommand, List<BookingModel>>
    {
        private readonly IBookingService bookingService;
        public Booking3SelectHandler(IBookingService bookingService)
        {
            this.bookingService = bookingService;
        }

        public async Task<List<BookingModel>> Handle(Booking3SelectCommand request, CancellationToken cancellationToken)
        {
            return await bookingService.OnLineBookingShow();
        }
    }
}
